package cc.rboot.tracking.annotation;

import cc.rboot.tracking.core.ITrackingProcessor;
import cc.rboot.tracking.processor.DefaultTrackingProcessor;
import org.springframework.stereotype.Component;

import java.lang.annotation.*;

@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
@Component
public @interface Tracking {
    
    String name() default ""; // 埋点名称

    Class<? extends ITrackingProcessor> processor() default DefaultTrackingProcessor.class; //埋点处理器
}
